package com.gxa.ehome.entity;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;
import java.util.Date;

public class Get implements Serializable {
    private  Integer id;
    private Cp cp;
    private User user;
    @JSONField(format = "YYYY-MM-dd HH:mm:ss")
    private Date time;
    private Boolean isUsed;
    @JSONField(format = "YYYY-MM-dd HH:mm:ss")
    private Date useTime;

    public Get(){

    }

    public Get(Integer id, Cp cp, User user, Date time, Boolean isUsed, Date useTime) {
        this.id = id;
        this.cp = cp;
        this.user = user;
        this.time = time;
        this.isUsed = isUsed;
        this.useTime = useTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Cp getCp() {
        return cp;
    }

    public void setCp(Cp cp) {
        this.cp = cp;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Boolean getUsed() {
        return isUsed;
    }

    public void setUsed(Boolean used) {
        isUsed = used;
    }

    public Date getUseTime() {
        return useTime;
    }

    public void setUseTime(Date useTime) {
        this.useTime = useTime;
    }

    @Override
    public String toString() {
        return "Get{" +
                "id=" + id +
                ", cp=" + cp +
                ", user=" + user +
                ", time=" + time +
                ", isUsed=" + isUsed +
                ", useTime=" + useTime +
                '}';
    }
}
